package com.ruoyi.yljf.domain.vo;

import com.ruoyi.yljf.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 参加活动用户表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActiveUserVO {

    /** 用户id */
    private Integer id;

    /** 用户名 */
    private String username;

    /** 用户头像 */
    private String userImg;

    public ActiveUserVO (User user){
        this.userImg = user.getUserAge();
        this.username = user.getUserName();
        this.id = Math.toIntExact(user.getUserId());
    }


}
